package yf.mall.service.app;

import yf.mall.entity.AppFavoriteEntity;
import yf.mall.vo.AppFavoriteVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 收藏表Service接口
 *
 *
 *
 * @date Fri Jul 28 07:58:50 CST 2023
 */
public interface AppFavoriteService extends BaseService<AppFavoriteEntity> {

    /************自动生成**************/
    List<AppFavoriteVo> findVo(AppFavoriteVo vo);

        AppFavoriteVo getVo(Long id);

     int updateVo(AppFavoriteVo vo);

       int saveVo(AppFavoriteVo vo);

    void downLoad(HttpServletResponse response, List<AppFavoriteVo> list);

    void upload(InputStream file);

    /***********BACK***********/




    /***********API***********/

    /**
     * 查询指定用户对指定资源的收藏状态
     * @param userId
     * @param type
     * @param refIds
     * @return
     */
    List<AppFavoriteEntity> findFavoriteByRefId(Long userId,Integer type,List<Long> refIds);


}
